﻿// CClockDialog.cpp: 实现文件
#include "pch.h"
#include "CG2019112346张柳.h"
#include "afxdialogex.h"
#include "CClockDialog.h"

// CClockDialog 对话框
IMPLEMENT_DYNAMIC(CClockDialog, CDialogEx)

CClockDialog::CClockDialog(CWnd* pParent /*=nullptr*/)
	: CDialogEx(IDD_CLOCK_DIALOG, pParent)
{
	flag = 0;
}

CClockDialog::~CClockDialog()
{
}

void CClockDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_INPUT_Location_X, mlocationX);
	DDX_Text(pDX, IDC_INPUT_Location_Y, mlocationY);
	DDX_Text(pDX, IDC_EDIT_Radius, mClockRadius);
	DDX_Control(pDX, IDC_COMBO_LOCATION, mComboLocation);
}


BEGIN_MESSAGE_MAP(CClockDialog, CDialogEx)
	ON_BN_CLICKED(IDOK, &CClockDialog::OnBnClickedOk)
END_MESSAGE_MAP()

// CClockDialog 消息处理程序

void CClockDialog::OnBnClickedOk()
{
	// TODO: 在此添加控件通知处理程序代码
	flag = mComboLocation.GetCurSel();
	CDialogEx::OnOK();
}
